package com.linQing.waterWork.modle.vo;


import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class EventHistoryListVo implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 设备编号
     */
    @ApiModelProperty(value = "设备编号")
    private Long equipmentId;

    /**
     * 报警时间
     */
    @ApiModelProperty(value = "报警时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date eventTime;

    /**
     * 报警信息
     */
    @ApiModelProperty(value = "报警信息")
    private String eventMessage;

    /**
     * 报警等级
     */
    @ApiModelProperty(value = "报警等级")
    private String eventLevel;

    /**
     * 处理状态
     */
    @ApiModelProperty(value = "报警状态")
    private String state;


    //加入注解,使该条不输出
    @TableField(exist = false)
    private long total;

}
